<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>：before和:after的用法</title>
		<style>
			#d1:before{
				content: '肥西第一帅锅';
				color: red;
			}
			#d1::after{
				content: '身长九尺，貌似潘安';
			}
		</style>
	</head>
	<body>
		<div id="d1">来勇</div>
	</body>
</html>